﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace Model
{
    public class Travel//出差申请表
    {
        [Key]
        public int id { get; set; }//出差表编号
        public string travel_name { get; set; }//出差名称
        public string TName { get; set; }//申请人
        public int Depar_ID { get; set; }//申请人部门
        public string remarks { get; set; }//备注
        public string place { get; set; }//地点
        public DateTime Create_date { get; set; }//出差时间
        public string Create_dj { get; set; }//出差多久
        public int Job_ID { get; set; }//审批人
        [ForeignKey("Job_ID")]
        public virtual Position Position { get; set; }
        public int Aid { get; set; }//状态
        [ForeignKey("Aid")]
        public virtual Astate Astate { get; set; }
    }
}
